package com.wyw.design.model.learning.behavioral.status;

/**
 * @Title
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2023/4/19 13:53
 * Update History:
 * Author        Time            Content
 */
public class StatusClient {
    public static void main(String[] args) {
        RemoteControlMachine context = new RemoteControlMachine();
        context.setCurrentState(new PowerOffState());
        context.play(); // 如果直接进行播放的话，因为电视机处于待机状态，所以没有任何输出

        context.powerOn();
        context.play();
        context.standby();
        context.powerOff();
    }
}
